package com.sicheng.lc.lc笔试.美团篇;

/**
 * @author zsc
 * @version 1.0
 * @date 2022/4/25 15:37
 */
public class 差分数组 {
    static int[][] a=new int[4][4];
    static void insert(int x1,int y1,int x2,int y2,int c)
    {
        a[x1][y1]+=c;
        a[x1][y2+1]-=c;
        a[x2+1][y1]-=c;
        a[x2+1][y2+1]+=c;
    }
    public static void main(String[] args) {
        int count=1;
        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
//                insert(i,j,count++);
            }
        }
    }
}
